package com.spic.business.blast.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spic.common.core.annotation.Excel;
import com.spic.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 爆区布防告警对象 blast_alarm
 *
 * @author spic
 * @date 2022-03-25
 */
public class BlastAlarm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 告警id */
    private Long alarmId;

    /** 爆区任务id */
    private String blastTaskId;

    /** 爆区任务名称 */
    @Excel(name = "爆区任务名称")
    private String blastTaskName;

    /** 告警对象 */
    @Excel(name = "告警对象")
    private String alarmObj;

    /** 对象类型：人员=0, 车辆=1 */
    @Excel(name = "对象类型", readConverterExp="0=人员, 1=车辆")
    private String objType;

    /** 告警类型：告警=0, 取消告警=1 */
    @Excel(name = "告警类型", readConverterExp="0=告警, 1=告警解除")
    private String alarmType;

    /** 告警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "告警时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date alarmTime;

    public Long getAlarmId() {
        return alarmId;
    }

    public void setAlarmId(Long alarmId) {
        this.alarmId = alarmId;
    }

    public String getBlastTaskId() {
        return blastTaskId;
    }

    public void setBlastTaskId(String blastTaskId) {
        this.blastTaskId = blastTaskId;
    }

    public String getBlastTaskName() {
        return blastTaskName;
    }

    public void setBlastTaskName(String blastTaskName) {
        this.blastTaskName = blastTaskName;
    }

    public String getAlarmObj() {
        return alarmObj;
    }

    public void setAlarmObj(String alarmObj) {
        this.alarmObj = alarmObj;
    }

    public String getObjType() {
        return objType;
    }

    public void setObjType(String objType) {
        this.objType = objType;
    }

    public String getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(String alarmType) {
        this.alarmType = alarmType;
    }

    public Date getAlarmTime() {
        return alarmTime;
    }

    public void setAlarmTime(Date alarmTime) {
        this.alarmTime = alarmTime;
    }

    @Override
    public String toString() {
        return "BlastAlarm{" +
                "alarmId=" + alarmId +
                ", blastTaskId='" + blastTaskId + '\'' +
                ", blastTaskName='" + blastTaskName + '\'' +
                ", alarmObj='" + alarmObj + '\'' +
                ", objType='" + objType + '\'' +
                ", alarmType='" + alarmType + '\'' +
                ", alarmTime=" + alarmTime +
                '}';
    }
}
